<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	template="/WEB-INF/templates/template.xhtml">
	<ui:define name="title">
		<h3><h:outputLabel	value="#{i18n['erp.compania.pagina.titulo']}" /></h3>
	</ui:define>
	<ui:define name="content">
		<h:form id="formCompania">
			<ui:param name="dataManager" value="#{companiaDataManager}" />
			<p:messages id="pnlMessages" autoUpdate="true" closable="true"/>
			<p:accordionPanel id="pnlAcordion">
				<p:tab id="tabCrear" title="#{i18n['erp.compania.acordion.crear']}">
					<ui:include src="/paginas/admCompania/crearCompania.xhtml" />
				</p:tab>
				<p:tab id="tabBuscar" title="#{i18n['erp.compania.acordion.buscar']}">
					<ui:include src="/paginas/admCompania/buscarCompania.xhtml" />
				</p:tab>
			</p:accordionPanel>
			<p:dialog id="modalDialog" header="Modal Dialog" widgetVar="dlg" modal="true" width="500" appendTo="@(body)">
				<p:panel id="pnlEditarCompania">
					<table>
						<tr>
							<td width="40%">
								<h:outputLabel for="txtNombre" value="#{i18n['erp.compania.nombre']}" />
							</td>
							<td width="60%">
								<h:inputText id="txtNombre" 
									value="#{companiaDataManager.companiaEditar.nombreCompania}" 
									required="true" label="#{i18n['erp.compania.nombre']}"/>
							</td>
						</tr>
						<tr>
							<td>
								<h:outputLabel for="txtDesc" value="#{i18n['erp.compania.descripcion']}" />
							</td>
							<td>
								<h:inputText id="txtDesc" value="#{companiaDataManager.companiaEditar.descCompania}" />
							</td>
						</tr>
					</table>
				</p:panel>
			</p:dialog>
		</h:form>
	</ui:define>
</ui:composition>